//
//  YLCarouselView.h
//  Thinkape-iOS
//
//  Created by admin on 16/4/28.
//  Copyright © 2016年 TIXA. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol YLCarouselViewDelegate;
@interface YLCarouselView : UIView


@property (nonatomic,weak)id <YLCarouselViewDelegate> delegate;


- (instancetype)initWithFrame:(CGRect)frame;
- (void) setupWithArray:(NSArray *)array;
- (void) setupWithLocalImgArray:(NSArray *)array;
+ (instancetype)initWithFrame:(CGRect)frame withArray:(NSArray *)array hasTimer:(BOOL)hasTimer interval:(NSUInteger)interval;
+ (instancetype)initWithFrame:(CGRect)frame hasTimer:(BOOL)hasTimer interval:(NSUInteger)interval placeHolder:(UIImage *)image;

@end

@protocol YLCarouselViewDelegate <NSObject>

- (void)carouselTouch:(YLCarouselView *)carousel atIndex:(NSInteger)index;


@end